package com.mh.www.mh_frame.model.bean;

import java.util.List;

/**
 * Created by lenovo on 2018/4/18.
 */

public class UserBean {

    /**
     * password : 0DPiKuNIrrVmD8IUCuw1hQxNqZc=
     * username : admin
     * authorities : [{"authority":"ROLE_USER"}]
     * accountNonExpired : true
     * accountNonLocked : true
     * credentialsNonExpired : true
     * enabled : true
     * emp_name : admin
     * _Eventid : 13be892e-b3cd-4973-9e80-b6312d4da532
     * userId : admin
     */

    private String password;
    private String username;
    private boolean accountNonExpired;
    private boolean accountNonLocked;
    private boolean credentialsNonExpired;
    private boolean enabled;
    private String emp_name;
    private String _Eventid;
    private String userId;
    private List<AuthoritiesBean> authorities;

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public boolean isAccountNonExpired() {
        return accountNonExpired;
    }

    public void setAccountNonExpired(boolean accountNonExpired) {
        this.accountNonExpired = accountNonExpired;
    }

    public boolean isAccountNonLocked() {
        return accountNonLocked;
    }

    public void setAccountNonLocked(boolean accountNonLocked) {
        this.accountNonLocked = accountNonLocked;
    }

    public boolean isCredentialsNonExpired() {
        return credentialsNonExpired;
    }

    public void setCredentialsNonExpired(boolean credentialsNonExpired) {
        this.credentialsNonExpired = credentialsNonExpired;
    }

    public boolean isEnabled() {
        return enabled;
    }

    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
    }

    public String getEmp_name() {
        return emp_name;
    }

    public void setEmp_name(String emp_name) {
        this.emp_name = emp_name;
    }

    public String get_Eventid() {
        return _Eventid;
    }

    public void set_Eventid(String _Eventid) {
        this._Eventid = _Eventid;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public List<AuthoritiesBean> getAuthorities() {
        return authorities;
    }

    public void setAuthorities(List<AuthoritiesBean> authorities) {
        this.authorities = authorities;
    }

    public static class AuthoritiesBean {
        /**
         * authority : ROLE_USER
         */

        private String authority;

        public String getAuthority() {
            return authority;
        }

        public void setAuthority(String authority) {
            this.authority = authority;
        }
    }
}
